let fn_list = async ( ctx ) => {
    ctx.render('blogs.html',{})
}
let fn_getById = async ( ctx ) => {
    ctx.body = '通过id搜索'
}
let fn_add = async ( ctx ) => {
    ctx.body = '新增'
}
let fn_update = async ( ctx ) => {
    ctx.body = '修改'
}
let fn_del = async ( ctx ) => {
    ctx.body = '删除'
}

export default {
    'get/blogs':fn_list,
    'get/blogs/:id':fn_getById,
    'post/blogs':fn_add,
    'put/blogs':fn_update,
    'delete/blogs':fn_del,
}